# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-sqlalchemy-utils
_pkgname=SQLAlchemy-Utils
pkgver=0.35.0
pkgrel=1
pkgdesc='Various utility functions for SQLAlchemy.'
arch=('any')
url='https://pypi.org/project/SQLAlchemy-Utils/#files'
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/SQLAlchemy-Utils-$pkgver.tar.gz")
sha512sums=('1c76d70fb10e3825a09a99d3d0890e684d361ec4813fafa58fa67073c6ae83d77c4328ade17c18709358617a3539daed51f08957ea27f1b78244424b0e6726ea')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

